//Source file: D:\\test\\com\\ce\\pms\\charge\\model\\SectSta.java

package com.ce.pms.charge.model;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.ce.pms.common.model.SysInfo;
import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 实体名称:分段收费标准 关联数据表:FEE_SECT_STA
 */
@Entity
@Table(name = "FEE_SECT_STA")
public class SectSta implements IDomainObject{
	@Id
	@GeneratedValue
	@Column(name = "SECT_STA_ID")
	/**
	 * 主键
	 */
	private Long sectStaId;

	/**
	 * 收费标准版本
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "STA_HIS_ID")
	private AbstractStaVersion staHis;

	/**
	 * 区段单价
	 */
	@Column(name = "PRICE",precision=18,scale=2)
	private BigDecimal price = new BigDecimal("0.00");

	/**
	 * 起点
	 */
	@Column(name = "START_POINT",precision=12,scale=2)
	private BigDecimal startPoint = new BigDecimal("0.00");

	/**
	 * 迄点
	 */
	@Column(name = "TO_POINT",precision=12,scale=2)
	private BigDecimal toPoint = new BigDecimal("0.00");

	@Embedded
	private SysInfo sysInfo;
	/**
	 * @roseuid 48757D170138
	 */
	public SectSta() {

	}
	/**
	 *  mini constructor
	 * @param staHis    收费标准版本
	 * @param sysInfo   系统信息
	 */
	public SectSta(AbstractStaVersion staHis, SysInfo sysInfo) {
		super();
		this.staHis = staHis;
		this.sysInfo = sysInfo;
	}
	public BigDecimal getPrice() {
		return price;
	}
	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	public Long getSectStaId() {
		return sectStaId;
	}
	public void setSectStaId(Long sectStaId) {
		this.sectStaId = sectStaId;
	}
	public AbstractStaVersion getStaHis() {
		return staHis;
	}
	public void setStaHis(AbstractStaVersion staHis) {
		this.staHis = staHis;
	}

	public BigDecimal getStartPoint() {
		return startPoint;
	}
	public void setStartPoint(BigDecimal startPoint) {
		this.startPoint = startPoint;
	}
	public SysInfo getSysInfo() {
		return sysInfo;
	}
	public void setSysInfo(SysInfo sysInfo) {
		this.sysInfo = sysInfo;
	}
	public BigDecimal getToPoint() {
		return toPoint;
	}
	public void setToPoint(BigDecimal toPoint) {
		this.toPoint = toPoint;
	}

}
